<script setup>
import ChatContentMarkdownRender from "@/views/chat/chatContentRender/ChatContentMarkdownRender.vue";
import ChatContentHtmlRender from "@/views/chat/chatContentRender/ChatContentHtmlRender.vue";

const props = defineProps({
    contentType: {
        type: String,
        default: 'text'
    },
    content: {
        type: String,
        default: ''
    }
})
</script>

<template>
    <template v-if="contentType==='html'">
        <ChatContentHtmlRender :content="content"></ChatContentHtmlRender>
    </template>
    <template v-else>
        <ChatContentMarkdownRender :content="content"></ChatContentMarkdownRender>
    </template>
</template>

<style scoped lang="scss">

</style>